package com.gxa.modules.payment.mapper;

import com.gxa.common.utils.Result;
import com.gxa.modules.payment.entity.PayItem;
import com.gxa.modules.payment.form.PayItemAddBillForm;
import com.gxa.modules.payment.form.PayItemForm;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface PayItemMapper {
    List<PayItem> queryByPage(Map<String,Object> params);

    void addPayItem(PayItemForm payItemForm);

    List<PayItem> queryAll(Integer id);
    void updatePayItem(PayItemForm payItemForm);

    void deletePayItem(Integer ids);

//    List<Integer> queryByCode();
//    List<Integer> queryByMeterCode();
    Integer queryItemId(Integer code);



    void addAndBill(PayItemAddBillForm payItemAddBillForms);

    void addAndBillSome(Integer lateFee);


    void deletesPayItemIds(List<Integer> ids);
}
